CC = g++ -g

LIBMESH = ../lib/libmesh.a
LIBIM = ../lib/libim.a
LIBD_LIB = ../lib/libd_Lib.a

LFLAGS = -lfltk -lXext -lX11 -lm -lfltk_gl -lGL -lGLU -L/usr/local/lib/libfltk.a $(LIBIM) $(LIBMESH) $(LIBD_LIB)
CFLAGS = -g -Wall -I../mesh -I../d_Lib -I../imlib -I../imlib/libtiff

.c.o:
	$(CC) $(CFLAGS) -c $<

.cc.o:
	$(CXX) $(CFLAGS) -c $<

PROG = pads_creator

OBJECTS =  main.o viewer_gui.o model_display.o PADSObject.o PADSMesh.o

all:$(PROG)

$(PROG) : $(OBJECTS)
	$(CC) $(OBJECTS) -o $(PROG) $(LFLAGS)
install: 
	mv $(PROG) ../bin

clean:
	-rm -rf *~ *bak *.o $(PROG)









